package com.kfm.pm.pet;

import java.util.Scanner;

public class HostTest {

    public static void main(String[] args) {
        Host host = new Host();
//        System.out.println("你要带那个动物去医院？");
//        System.out.println("1. 狗");
//        System.out.println("2. 鸟");
//        Scanner sc = new Scanner(System.in);
//        int number = sc.nextInt();
//        Pet pet = switch (number) {
//            case 1 -> new Dog();
//            case 2 -> new Bird();
//            default -> new Pet();
//        };
//        host.goHospital(pet);

        Pet p = host.donateAnimal("dog");
        p.toHospital();
    }
}
